package project.innovation.mooddiagnosis.service.impl;

import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import project.innovation.mooddiagnosis.dao.MessageMapper;
import project.innovation.mooddiagnosis.entity.message.MessageInfo;
import project.innovation.mooddiagnosis.service.MessageService;

import java.util.List;

@Service
@Slf4j
public class MessageServiceImpl implements MessageService {
    @Autowired
    private MessageMapper messageMapper;

    @Override
    public List<MessageInfo> messageInfoList(String userId) {
        return messageMapper.selectMessageOrderByMessageId(userId);
    }
}
